package com.dotndot.momserver.data;

import javax.jdo.annotations.*;

@PersistenceCapable( identityType = IdentityType.APPLICATION )
public class SecretKey
{
    @PrimaryKey
    @Persistent( valueStrategy = IdGeneratorStrategy.IDENTITY )
    private Long index;

    @Persistent
    private String deviceID;

    @Persistent
    private String secretKey;

    public SecretKey( String deviceID, String secretKey )
    {
        setDeviceID(deviceID);
        setSecretKey(secretKey);
    }

    public Long getIndex()
    {
        return index;
    }

    public void setIndex( Long index )
    {
        this.index = index;
    }
    
    public void setDeviceID( String deviceID )
    {
        this.deviceID = deviceID;
    }

    public String getDeviceID()
    {
        return deviceID;
    }

    public void setSecretKey( String secretKey )
    {
        this.secretKey = secretKey;
    }

    public String getSecretKey()
    {
        return secretKey;
    }

}
